﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using 简单三层架构.BLL;
using 简单三层架构.Model;
using Order = 简单三层架构.DAL.Order;

namespace 简单三层架构
{
    public partial class ShowCart : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BLL.Cart cart = Session["Cart"] as BLL.Cart;

            if(!Page.IsPostBack)
            {
                GridView1.DataSource = cart.GetLineItems();
                GridView1.DataBind();
            }
            
        }
    }
}
